define(function(require,exports,module){
	var aw = require("ajaxwrapper");
	
	module.exports = {
		qryRules: function(cParams,sCb){
			aw.ajax({
				url: "api/cashbackrule/query",
				data: cParams,
				success: sCb
			});
		},
		
		qryScopes: function(cParams,sCb){
			aw.ajax({
				url: "api/rulescope/query",
				data: cParams,
				success: sCb
			});
		},
		
		qrySubGridData: function(cParams,sCb){
			aw.ajax({
				url: "api/productruledetail/query",
				data: cParams,
				success: sCb
			});
		},
		
		search: function(cParams,sCb){
			aw.ajax({
				url: "api/productruledetail/search",
				data: cParams,
				success: sCb
			});
		},
		
		queryOnly: function(cParams,sCb){
			aw.ajax({
				url: "api/productruledetail/queryonly",
				data: cParams,
				success: sCb
			});
		}
	};
});